package com.xt.purchasingsystem.model;

import java.io.Serializable;
import java.math.BigDecimal;

public class MProcedure  implements Serializable {
    private Integer id;

    private Integer parentId;

    private Integer detailsNumber;

    private String procedureId;

    private String procedureName;

    private BigDecimal labourHourAmount;

    private BigDecimal realLabourHourAmount;

    private BigDecimal subtotal;

    private BigDecimal realSubtotal;

    private BigDecimal moduleSubtotal;

    private BigDecimal realModuleSubtotal;

    private BigDecimal costPrice;

    private BigDecimal demandAmount;

    private BigDecimal realAmount;

    private String procedureFinishTag;

    private String procedureTransferTag;

    public MProcedure(Integer id, Integer parentId, Integer detailsNumber, String procedureId, String procedureName, BigDecimal labourHourAmount, BigDecimal realLabourHourAmount, BigDecimal subtotal, BigDecimal realSubtotal, BigDecimal moduleSubtotal, BigDecimal realModuleSubtotal, BigDecimal costPrice, BigDecimal demandAmount, BigDecimal realAmount, String procedureFinishTag, String procedureTransferTag) {
        this.id = id;
        this.parentId = parentId;
        this.detailsNumber = detailsNumber;
        this.procedureId = procedureId;
        this.procedureName = procedureName;
        this.labourHourAmount = labourHourAmount;
        this.realLabourHourAmount = realLabourHourAmount;
        this.subtotal = subtotal;
        this.realSubtotal = realSubtotal;
        this.moduleSubtotal = moduleSubtotal;
        this.realModuleSubtotal = realModuleSubtotal;
        this.costPrice = costPrice;
        this.demandAmount = demandAmount;
        this.realAmount = realAmount;
        this.procedureFinishTag = procedureFinishTag;
        this.procedureTransferTag = procedureTransferTag;
    }

    public MProcedure() {
        super();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public Integer getDetailsNumber() {
        return detailsNumber;
    }

    public void setDetailsNumber(Integer detailsNumber) {
        this.detailsNumber = detailsNumber;
    }

    public String getProcedureId() {
        return procedureId;
    }

    public void setProcedureId(String procedureId) {
        this.procedureId = procedureId == null ? null : procedureId.trim();
    }

    public String getProcedureName() {
        return procedureName;
    }

    public void setProcedureName(String procedureName) {
        this.procedureName = procedureName == null ? null : procedureName.trim();
    }

    public BigDecimal getLabourHourAmount() {
        return labourHourAmount;
    }

    public void setLabourHourAmount(BigDecimal labourHourAmount) {
        this.labourHourAmount = labourHourAmount;
    }

    public BigDecimal getRealLabourHourAmount() {
        return realLabourHourAmount;
    }

    public void setRealLabourHourAmount(BigDecimal realLabourHourAmount) {
        this.realLabourHourAmount = realLabourHourAmount;
    }

    public BigDecimal getSubtotal() {
        return subtotal;
    }

    public void setSubtotal(BigDecimal subtotal) {
        this.subtotal = subtotal;
    }

    public BigDecimal getRealSubtotal() {
        return realSubtotal;
    }

    public void setRealSubtotal(BigDecimal realSubtotal) {
        this.realSubtotal = realSubtotal;
    }

    public BigDecimal getModuleSubtotal() {
        return moduleSubtotal;
    }

    public void setModuleSubtotal(BigDecimal moduleSubtotal) {
        this.moduleSubtotal = moduleSubtotal;
    }

    public BigDecimal getRealModuleSubtotal() {
        return realModuleSubtotal;
    }

    public void setRealModuleSubtotal(BigDecimal realModuleSubtotal) {
        this.realModuleSubtotal = realModuleSubtotal;
    }

    public BigDecimal getCostPrice() {
        return costPrice;
    }

    public void setCostPrice(BigDecimal costPrice) {
        this.costPrice = costPrice;
    }

    public BigDecimal getDemandAmount() {
        return demandAmount;
    }

    public void setDemandAmount(BigDecimal demandAmount) {
        this.demandAmount = demandAmount;
    }

    public BigDecimal getRealAmount() {
        return realAmount;
    }

    public void setRealAmount(BigDecimal realAmount) {
        this.realAmount = realAmount;
    }

    public String getProcedureFinishTag() {
        return procedureFinishTag;
    }

    public void setProcedureFinishTag(String procedureFinishTag) {
        this.procedureFinishTag = procedureFinishTag == null ? null : procedureFinishTag.trim();
    }

    public String getProcedureTransferTag() {
        return procedureTransferTag;
    }

    public void setProcedureTransferTag(String procedureTransferTag) {
        this.procedureTransferTag = procedureTransferTag == null ? null : procedureTransferTag.trim();
    }

    @Override
    public String toString() {
        return "MProcedure{" +
                "id=" + id +
                ", parentId=" + parentId +
                ", detailsNumber=" + detailsNumber +
                ", procedureId='" + procedureId + '\'' +
                ", procedureName='" + procedureName + '\'' +
                ", labourHourAmount=" + labourHourAmount +
                ", realLabourHourAmount=" + realLabourHourAmount +
                ", subtotal=" + subtotal +
                ", realSubtotal=" + realSubtotal +
                ", moduleSubtotal=" + moduleSubtotal +
                ", realModuleSubtotal=" + realModuleSubtotal +
                ", costPrice=" + costPrice +
                ", demandAmount=" + demandAmount +
                ", realAmount=" + realAmount +
                ", procedureFinishTag='" + procedureFinishTag + '\'' +
                ", procedureTransferTag='" + procedureTransferTag + '\'' +
                '}';
    }
}